package heuristicas;

import principal.Vertice;

public class H4 implements Heuristica {

    private final Heuristica h1 = new H1();
    private final Heuristica h2 = new H2();
    private final Heuristica h3 = new H3();

    private final float pesoH1 = 0.1f;
    private final float pesoH2 = 0.2f;
    private final float pesoH3 = 0.7f;

    @Override
    public int calcula(Vertice v) {
        return (int) Math.floor(
                pesoH1 * h1.calcula(v)
                + pesoH2 * h2.calcula(v)
                + pesoH3 * h3.calcula(v));
    }
}
